package com.pointi.emoTools;

import java.sql.ResultSet;

public class SysGuidelineData
{
	// Agent
	public int agent_drop_subtime ;
	public int agent_drop_count ;
	public int agent_default_subtime_range ;
	public double agent_issue_call_base_score ;
	public double agent_anger_position ;
	public double agent_drop_data_max ;
	public double agent_drop_data_min ;
	
	// Customer
	public int customer_drop_subtime ;
	public int customer_drop_count ;
	public int customer_default_subtime_range ;
	public double customer_issue_call_base_score ;
	public double customer_anger_position ;
	public double customer_drop_data_max ;
	public double customer_drop_data_min ;

	public SysGuidelineData()
	{
		// Agent
		agent_drop_subtime = 0 ;
		agent_drop_count = 0 ;
		agent_default_subtime_range = 0 ;
		agent_issue_call_base_score = 0 ;
		agent_anger_position = 0 ;
		agent_drop_data_max = 0 ;
		agent_drop_data_min = 0 ;
		
		// Customer
		customer_drop_subtime = 0 ;
		customer_drop_count = 0 ;
		customer_default_subtime_range = 0 ;
		customer_issue_call_base_score = 0 ;
		customer_anger_position = 0 ;
		customer_drop_data_max = 0 ;
		customer_drop_data_min = 0 ;
	}
	
	public void fnInitializeData()
	{
		// Agent
		agent_drop_subtime = 3 ;
		agent_drop_count = 0 ;
		agent_default_subtime_range = 1 ;
		agent_issue_call_base_score = 0 ;
		agent_anger_position = 50 ;
		agent_drop_data_max = 100 ;
		agent_drop_data_min = 0 ;
		
		// Customer
		customer_drop_subtime = 3 ;
		customer_drop_count = 0 ;
		customer_default_subtime_range = 1 ;
		customer_issue_call_base_score = 0 ;
		customer_anger_position = 50 ;
		customer_drop_data_max = 100 ;
		customer_drop_data_min = 0 ;
	}

	public void fnSetParameter(ResultSet inRS)
	{
		try
		{
			agent_drop_subtime = inRS.getInt("agent_drop_subtime") ;
			agent_drop_count = inRS.getInt("agent_drop_count") ;
			agent_default_subtime_range = inRS.getInt("agent_default_subtime_range") ;
			agent_issue_call_base_score = inRS.getFloat("agent_issue_call_base_score") ;
			agent_anger_position = inRS.getFloat("agent_anger_position") ;
			agent_drop_data_max = inRS.getFloat("agent_drop_data_max") ;
			agent_drop_data_min = inRS.getFloat("agent_drop_data_min") ;
			customer_drop_subtime = inRS.getInt("customer_drop_subtime") ;
			customer_drop_count = inRS.getInt("customer_drop_count") ;
			customer_default_subtime_range = inRS.getInt("customer_default_subtime_range") ;
			customer_issue_call_base_score = inRS.getFloat("customer_issue_call_base_score") ;
			customer_anger_position = inRS.getFloat("customer_anger_position") ;
			customer_drop_data_max = inRS.getFloat("customer_drop_data_max") ;
			customer_drop_data_min = inRS.getFloat("customer_drop_data_min") ;
		}
		catch (Exception e) { e.printStackTrace() ; }
	}
	
	public String fnGetAgentDropDataMax() { return String.valueOf(this.agent_drop_data_max) ; }
	public String fnGetAgentDropDataMin() { return String.valueOf(this.agent_drop_data_min) ; }
	public String fnGetCustomerDropDataMax() { return String.valueOf(this.customer_drop_data_max) ; }
	public String fnGetCustomerDropDataMin() { return String.valueOf(this.customer_drop_data_min) ; }
}
